<div class="top navbar-fixed-top" role="header">
  <div class="container">
    <a href="#" class="navbar-brand pull-left">
      隐患排查
    </a>
    <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
      <span class="glyphicon glyphicon-align-justify"></span>
    </button>
    <nav class="navbar-collapse collapse" role="navigation">
      <ul class="navbar-nav nav">
        <li><a href="#/main">首页工作提醒</a></li>
      </ul>
      <!--<form class="navbar-form navbar-left" role="search" style="padding-top: 5px">-->
      <!--<div class="form-group">-->
      <!--<input type="text" class="form-control input-sm" placeholder="搜索你感兴趣的事情">-->
      <!--</div>-->
      <!--<button type="submit" class="btn btn-sm">搜索</button>-->
      <!--</form>-->
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#/logout">退出</a></li>
      </ul>
    </nav>
  </div>
</div>
<!-- Middle content section -->
<div class="middle">
  <div class="container">
    <tabset>
      <tab heading="{{title}}">
        <div class="row">
          <div class="box col-md-12">
            <div class="box-inner">
              <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-th"></i>隐患情况</h2>

                <!--<div class="box-icon jiben">-->
                  <!--<a ng-href="#/" class="btn btn-edit btn-round btn-default"><i-->
                    <!--class="glyphicon glyphicon-edit"></i></a>-->
                  <!--<a href="#" class="btn btn-saveOrUpdate btn-round btn-default"><i-->
                    <!--class="glyphicon glyphicon-ok"></i></a>-->
                  <!--<a class="btn btn-minimize btn-round btn-default"><i-->
                    <!--class="glyphicon glyphicon-chevron-up"></i></a>-->
                <!--</div>-->
              </div>
              <div class="box-content">
                <div class="row jiben">
                  <div class="col-md-4"><strong>企业名称</strong>
                    <p>
                      <small id="qymc">{{baseInfo.entBaseInfo.qymc}}{{baseInfo.hiddenDdangerRec.entBaseInfo.qymc}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>经营场地</strong>
                    <p>
                      <small id="scjydzmc">{{baseInfo.entProAddress.scjydzmc}}{{baseInfo.hiddenDdangerRec.entProAddress.scjydzmc}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>详细地址</strong>
                    <p>
                      <small id="scjydz">{{baseInfo.entProAddress.scjydz}}{{baseInfo.hiddenDdangerRec.entProAddress.scjydz}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>隐患部位</strong>
                    <p>
                      <small id="yhbw">{{baseInfo.yhbw}}{{baseInfo.hiddenDdangerRec.yhbw}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>隐患发现方式</strong>
                    <p>
                      <small id="yhfxfs">
                        <span ng-if="baseInfo.yhfxfs == 0 || baseInfo.hiddenDdangerRec.yhfxfs == 0" class="animate-if">
                        自查发现
                      </span>
                      <span ng-if="baseInfo.yhfxfs == 1 || baseInfo.hiddenDdangerRec.yhfxfs == 1" class="animate-if">
                       监督检查
                      </span>
                      <span ng-if="baseInfo.yhfxfs == 2 || baseInfo.hiddenDdangerRec.yhfxfs == 2" class="animate-if">
                        投诉举报
                      </span>
                        </small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>隐患来源</strong>
                    <p>
                      <small id="yhly">
                      <span ng-if="baseInfo.yhly == 0 || baseInfo.hiddenDdangerRec.yhly == 0" class="animate-if">
                       自有隐患
                      </span>
                      <span ng-if="baseInfo.yhly == 1 || baseInfo.hiddenDdangerRec.yhly == 1" class="animate-if">
                        外来隐患
                      </span>
                        </small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>隐患类别</strong>
                    <p>
                      <small id="zcbzlbmc">{{baseInfo.selfExaClass.zcbzlbmc}}{{baseInfo.hiddenDdangerRec.selfExaClass.zcbzlbmc}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>隐患描述</strong>
                    <p>
                      <small id="yhms">{{baseInfo.yhms}}{{baseInfo.hiddenDdangerRec.yhms}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>形成隐患原因</strong>
                    <p>
                      <small id="xcxxyy">{{baseInfo.xcxxyy}}{{baseInfo.hiddenDdangerRec.xcxxyy}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>影响范围及危害后果</strong>
                    <p>
                      <small id="yxfwwhhg">{{baseInfo.yxfwwhhg}}{{baseInfo.hiddenDdangerRec.yxfwwhhg}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>隐患发现时间</strong>
                    <p>
                      <small id="fxyhsj">{{baseInfo.fxyhsj}}{{baseInfo.hiddenDdangerRec.fxyhsj}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>隐患图片</strong>
                    <p>
                      <small id="yhtpwjh"><a href="/htms/api/yinhuan/download?hdid={{baseInfo.hiddenDdangerRec?baseInfo.hiddenDdangerRec.id:baseInfo.id}}&fileName={{yhtpinfo.filename}}" ng-repeat="yhtpinfo in yhtp">{{yhtpinfo.scwjmc}}</a></small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>隐患发现人</strong>
                    <p>
                      <small id="yhfxr">{{baseInfo.yhfxr}}{{baseInfo.hiddenDdangerRec.yhfxr}}</small>
                    </p>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!--/span-->
        </div>
        <div class="row">
          <div class="box col-md-12">
            <div class="box-inner">
              <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-th"></i>整改情况</h2>

                <!--<div class="box-icon sjdw">-->
                  <!--<a href="#" class="btn btn-edit btn-round btn-default"><i-->
                    <!--class="glyphicon glyphicon-edit"></i></a>-->
                  <!--<a href="#" class="btn btn-saveOrUpdate btn-round btn-default"><i-->
                    <!--class="glyphicon glyphicon-ok"></i></a>-->
                  <!--<a href="#" class="btn btn-minimize btn-round btn-default"><i-->
                    <!--class="glyphicon glyphicon-chevron-up"></i></a>-->
                <!--</div>-->
              </div>
              <div class="box-content">
                <div class="row sjdw">
                  <span ng-if="baseInfo.hiddenDdangerRec != null">
                    <div class="col-md-4"><strong>挂牌督办级别</strong>
                      <p>
                        <small id="gpdbjb">
                      <span ng-if="baseInfo.gpdbjb == 1" class="animate-if">
                       国家
                      </span>
                      <span ng-if="baseInfo.gpdbjb == 2" class="animate-if">
                         省
                      </span>
                        <span ng-if="baseInfo.gpdbjb == 3" class="animate-if">
                        市
                      </span>
                     <span ng-if="baseInfo.gpdbjb == 4" class="animate-if">
                         区县
                      </span>
                        <span ng-if="baseInfo.gpdbjb == 5" class="animate-if">
                        街镇
                      </span>
                        </small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>挂牌督办文号</strong>
                      <p>
                        <small id="gpdbwh">{{baseInfo.gpdbwh}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>挂牌督办单位</strong>
                      <p>
                        <small id="gpdbdw">{{baseInfo.gpdbdw}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>隐患报告附件</strong>
                      <p>
                        <small id="yhbgfj">{{baseInfo.yhbgfj}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>隐患报告摘要</strong>
                      <p>
                        <small id="yhbgzy">{{baseInfo.yhbgzy}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>目标任务到期情况</strong>
                      <p>
                        <small id="mbrwdqqk">
                          <span ng-if="baseInfo.mbrwdqqk == 0" class="animate-if">
                         否
                      </span>
                        <span ng-if="baseInfo.mbrwdqqk == 1" class="animate-if">
                        是
                      </span>
                        </small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>目标任务到期日期</strong>
                      <p>
                        <small id="mbrwdqrq">{{baseInfo.mbrwdqrq}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>整改责任到位情况</strong>
                      <p>
                        <small id="zgrwdwqk">
                          <span ng-if="baseInfo.zgrwdwqk == 0" class="animate-if">
                         否
                      </span>
                        <span ng-if="baseInfo.zgrwdwqk == 1" class="animate-if">
                        是
                      </span>
                        </small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>整改责任到期日期</strong>
                      <p>
                        <small id="zgrwdqrq">{{baseInfo.zgrwdqrq}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>治理措施到位情况</strong>
                      <p>
                        <small id="zlcsdwqk">
                          <span ng-if="baseInfo.zlcsdwqk == 0" class="animate-if">
                         否
                      </span>
                        <span ng-if="baseInfo.zlcsdwqk == 1" class="animate-if">
                        是
                      </span>
                        </small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>治理措施到期日期</strong>
                      <p>
                        <small id="zlcsdqrq">{{baseInfo.zlcsdqrq}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>整改资金到位情况</strong>
                      <p>
                        <small id="zgzjdwqk">
                          <span ng-if="baseInfo.zgzjdwqk == 0" class="animate-if">
                         否
                      </span>
                        <span ng-if="baseInfo.zgzjdwqk == 1" class="animate-if">
                        是
                      </span>
                        </small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>整改资金到期日期</strong>
                      <p>
                        <small id="zgzjdqrq">{{baseInfo.zgzjdqrq}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>整改时限到位情况</strong>
                      <p>
                        <small id="zgsxdwqk">
                          <span ng-if="baseInfo.zgsxdwqk == 0" class="animate-if">
                         否
                      </span>
                        <span ng-if="baseInfo.zgsxdwqk == 1" class="animate-if">
                        是
                      </span>
                        </small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>整改时限到期日期</strong>
                      <p>
                        <small id="zgsxdqrq">{{baseInfo.zgsxdqrq}}</small>
                      </p>
                    </div>
                     <div class="col-md-4"><strong>应急预案到位情况</strong>
                       <p>
                         <small id="zgyadwqk">
                          <span ng-if="baseInfo.zgyadwqk == 0" class="animate-if">
                         否
                      </span>
                        <span ng-if="baseInfo.zgyadwqk == 1" class="animate-if">
                        是
                      </span>
                         </small>
                       </p>
                     </div>
                    <div class="col-md-4"><strong>应急预案到期日期</strong>
                      <p>
                        <small id="zgyadqrq">{{baseInfo.zgyadqrq}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>纳入治理计划</strong>
                      <p>
                        <small id="nrzljh">
                          <span ng-if="baseInfo.nrzljh == 0" class="animate-if">
                         否
                      </span>
                        <span ng-if="baseInfo.nrzljh == 1" class="animate-if">
                        是
                      </span>
                        </small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>纳入治理计划日期</strong>
                      <p>
                        <small id="nrzljhrq">{{baseInfo.nrzljhrq}}</small>
                      </p>
                    </div>
                    <div class="col-md-4"><strong>整改资金(元)</strong>
                      <p>
                        <small id="zgzj">{{baseInfo.zgzj}}</small>
                      </p>
                    </div>
                  </span>
                  <div class="col-md-4"><strong>整改要求</strong>
                    <p>
                      <small id="zgyq">{{baseInfo.zgyq}}{{baseInfo.hiddenDdangerRec.zgyq}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>整改类型</strong>
                    <p>
                      <small id="zglx">
                      <span ng-if="baseInfo.zglx == 0 || baseInfo.hiddenDdangerRec.zglx == 0" class="animate-if">
                       立即整改
                      </span>
                      <span ng-if="baseInfo.zglx == 1 || baseInfo.hiddenDdangerRec.zglx == 1" class="animate-if">
                         限期整改
                      </span>
                        <span ng-if="baseInfo.zglx == 2 || baseInfo.hiddenDdangerRec.zglx == 2" class="animate-if">
                        停业停产整改
                      </span>
                        </small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>整改方式</strong>
                    <p>
                      <small id="zgfs">
                      <span ng-if="baseInfo.zgfs == 0 || baseInfo.hiddenDdangerRec.zgfs == 0" class="animate-if">
                       企业自主
                      </span>
                      <span ng-if="baseInfo.zgfs == 1 || baseInfo.hiddenDdangerRec.zgfs == 1" class="animate-if">
                         强制整改
                        </span>
                      </small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>整改状态</strong>
                    <p>
                      <small id="zgzt">
                      <span ng-if="baseInfo.zgzt == 0 || baseInfo.hiddenDdangerRec.zgzt == 0" class="animate-if">
                       未整改
                      </span>
                      <span ng-if="baseInfo.zgzt == 1 || baseInfo.hiddenDdangerRec.zgzt == 1" class="animate-if">
                         已整改
                        </span>
                      <span ng-if="baseInfo.zgzt == 2 || baseInfo.hiddenDdangerRec.zgzt == 2" class="animate-if">
                         整改中
                        </span>
                        </small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>整改期限</strong>
                    <p>
                      <small id="zgqx">{{baseInfo.zgqx}}{{baseInfo.hiddenDdangerRec.zgqx}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>整改情况</strong>
                    <p>
                      <small id="zgqk">{{baseInfo.zgqk}}{{baseInfo.hiddenDdangerRec.zgqk}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>整改责任人</strong>
                    <p>
                      <small id="zrr">{{baseInfo.zrr}}{{baseInfo.hiddenDdangerRec.zrr}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>联系电话</strong>
                    <p>
                      <small id="zrrdh">{{baseInfo.zrrdh}}{{baseInfo.hiddenDdangerRec.zrrdh}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>整改完成日期</strong>
                    <p>
                      <small id="zgwcrq">{{baseInfo.zgwcrq}}{{baseInfo.hiddenDdangerRec.zgwcrq}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>填报日期</strong>
                    <p>
                      <small id="tbsj">{{baseInfo.tbsj}}{{baseInfo.hiddenDdangerRec.tbsj}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>上报日期</strong>
                    <p>
                      <small id="scsj">{{baseInfo.scsj}}{{baseInfo.hiddenDdangerRec.scsj}}</small>
                    </p>
                  </div>
                  <div class="col-md-4"><strong>整改图片</strong>
                    <p>
                      <small id="yhzgtp"><a target="_blank" href="/htms/api/yinhuan/download?hdid={{baseInfo.hiddenDdangerRec?baseInfo.hiddenDdangerRec.id:baseInfo.id}}&fileName={{zgtpinfo.filename}}" ng-repeat="zgtpinfo in zgtp">{{zgtpinfo.scwjmc}}</a></small>
                    </p>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!--/span-->
          </div>
        </tab>

      <tab heading="历史流水信息">
        <div class="row">
          <div class="box col-md-12">
            <div class="box-inner">
              <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-th"></i>历史信息</h2>

                <!--<div class="box-icon">-->
                  <!--<a href="#" class="btn btn-edit btn-round btn-default"><i-->
                    <!--class="glyphicon glyphicon-edit"></i></a>-->
                  <!--<a href="#" class="btn btn-saveOrUpdate btn-round btn-default"><i-->
                    <!--class="glyphicon glyphicon-ok"></i></a>-->
                  <!--<a href="#" class="btn btn-minimize btn-round btn-default"><i-->
                    <!--class="glyphicon glyphicon-chevron-up"></i></a>-->
                <!--</div>-->

              </div>
              <div class="row-fluid">
                <div class="col-md-12">
                  <ul class="timeline">

                    <li ng-repeat="history in historys">
                      <div class="timeline-badge">{{history.hcsj}}{{history.fcsj}}{{history.shsj}}</div>
                      <div class="timeline-panel">
                        <div class="timeline-heading">
                          <h4 class="timeline-title">信息</h4>
                        </div>
                        <div class="timeline-body">
                          <p>{{history.hcyj}}{{history.fcyj}}{{history.shyj}}</p>
                          <small>{{history.hcr}}{{history.fcr}}{{history.shr}}</small>
                        </div>
                      </div>
                    </li>
                  </ul>
                </div>
              </div>
            </div>
          </div>
          <!--/span-->
        </div>
        <!--/row-->
      </tab>
      <tab heading="{{hcfcTitle}}" ng-show="isHcFc" active="active">
        <div class="row">
          <div class="box col-md-12">
            <div class="box-inner">
              <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-th"></i>{{hcfcTitle}}</h2>

                <!--<div class="box-icon">-->
                <!--<a href="#" class="btn btn-edit btn-round btn-default"><i-->
                <!--class="glyphicon glyphicon-edit"></i></a>-->
                <!--<a href="#" class="btn btn-saveOrUpdate btn-round btn-default"><i-->
                <!--class="glyphicon glyphicon-ok"></i></a>-->
                <!--<a href="#" class="btn btn-minimize btn-round btn-default"><i-->
                <!--class="glyphicon glyphicon-chevron-up"></i></a>-->
                <!--</div>-->

              </div>
              <div class="row-fluid">
                <div class="col-md-12" style="text-align: center">
                  是否通过
                  <select name="sftghcfc" id="sftghcfc" ng-model="sftghcfc">
                    <option value="1" selected>通过</option>
                    <option value="0">不通过</option>
                  </select>
                  <br/>
                  <textarea name="shyj" id="shyj" cols="30" rows="10" class="form-control" placeholder="请填写意见" ng-model="shyj"></textarea>
                  <br/>
                  <button class="btn btn-lg btn-info" ng-click="sendHcFc()">发送</button>
                </div>
              </div>
            </div>
          </div>
          <!--/span-->
        </div>
        <!--/row-->
      </tab>
    </tabset>

  </div>
</div>
